package com.leyou.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.trade.dto.OrderDTO;
import com.leyou.trade.dto.OrderFormDTO;
import com.leyou.trade.entity.Order;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface OrderService extends IService<Order> {
    Long createOrder(OrderFormDTO orderFormDTO, HttpServletRequest request);

    OrderDTO queryOrderById(Long orderId);

    String getPayUrl(Long orderId);

    void handleNotify(Map<String, String> data);

    void clearOrder();

    void evictOrderIfNecessary(Long orderId);

    Integer queryPayStatus(Long orderId);

    void UpdateStatus(Long skuId);
}
